<!DOCTYPE html>
<html>
<head>
	<title>用户</title>
	<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
	<style type="text/css">
		body { margin: 20 auto 0 auto; }
	</style>
</head>
<body>
<div class="panel panel-default">
  <div class="panel-body">
  		<img src="{{ $user->avatar }}" width="50" height="50" >
    	{{ $user->nickname }}
    	{{ $user->XYB }} <a href="/admin_1427a/user/log?id={{$user->id}}&t=1">明细 >></a>
    	{{ $user->JB }} <a href="/admin_1427a/user/log?id={{$user->id}}&t=2">明细 >></a>
  </div>
</div>
<div class="page-header">
  <h3>粉丝，有效粉丝:{{ $valid_count }}</h3>
</div>
<table class="table table-bordered">
	<tr>
		<th>头像</th>
		<th>用户名</th>
		<th>小妖币</th>
		<th>金币</th>
		<th>VIP</th>
		<th>下载APP</th>
		<th>绑定手机</th>
		<th>玩过游戏</th>
		<th>时间</th>
	</tr>
	@foreach($users as $user)
		<tr>
			<td>
				<a href="/admin_1427a/user?id={{ $user->id }}" ><img src="{{ $user->avatar }}" class="img-responsive" width="30" height="30" ></a>
			</td>
			<td><a href="/admin_1427a/user?id={{ $user->id }}" >{{ $user->nickname }}</a></td>
			<td>{{ $user->XYB }}</td>
			<td>{{ $user->JB }}</td>
			<td>@if($user->game_zghpt->level) √ @else ✕ @endif</td>
			<td>@if(($user->status&1)==1) √ @else ✕ @endif</td>
			<td>@if(($user->status&2)==2) √ @else ✕ @endif</td>
			<td>@if(($user->status&4)==4) √ @else ✕ @endif</td>
			<td>{{ $user->created_at }}</td>
		</tr>
	@endforeach
</table>
{{ $users->appends($params)->links() }}
</body>
</html>